package com.ddh.ddhsanguogame.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author
 * @since 2025-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("card_user")
@ApiModel(value="User对象", description="用户信息表")
public class CardUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户唯一ID，主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "用户名，用于登录，唯一且非空")
    private String username;

    @ApiModelProperty(value = "用户密码，建议存储加密后的哈希值")
    private String password;

    @ApiModelProperty(value = "用户昵称，可为空")
    private String nickname;

    @ApiModelProperty(value = "用户头像链接地址，可为空")
    private String avatarUrl;

    @ApiModelProperty(value = "性别：0-未知，1-男，2-女")
    private Integer gender;

    @ApiModelProperty(value = "用户创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "最后更新时间")
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "创建人用户ID")
    private Long createdBy;

    @ApiModelProperty(value = "最后修改人用户ID")
    private Long updatedBy;


}
